<?php


namespace app\api\controller;


use think\facade\Db;

class Form
{
    public function getView(){
        $data = request()->param();
        $res = Db::table('view')->where('view_id',$data['view_id'])->find();
        success('页面',$res);
    }
    public function updateView(){
        $data = request()->param();
        $res = Db::table('view')->where('view_id',$data['view_id'])->update($data);
        if ($res) success('页面更新',$res);else fail('页面更新');

    }
}